﻿#region Copyright and License
/*==============================================================================
 *  Copyright (c) cndotnet.org Corporation.  All rights reserved.
 * ===============================================================================
 * This code and information is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the implied warranties
 * of merchantability and fitness for a particular purpose.
 * ===============================================================================
 * Licensed under the GNU General Public License (GPL) v2
 * http://www.cndotnet.org/ucenter
 * ==============================================================================*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UCenter.DependenceInjection
{
    /// <summary>
    /// The event arguments of container event
    /// </summary>
    public class ContainerEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ContainerEventArgs"/> class.
        /// </summary>
        /// <param name="body">The body.</param>
        /// <param name="type">The type.</param>
        public ContainerEventArgs(object body, ContainerType type)
        {
            this.Body = body;
            this.Type = type;
        }

        /// <summary>
        /// Gets or sets the body.
        /// </summary>
        /// <value>The body.</value>
        public Object Body { get; set; }

        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>The type.</value>
        public ContainerType Type { get; set; }
    }
}
